<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <script src="./vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="app">
    <p v-for="(value,key,index) in list">{{value}} {{key}} {{index}}</p>
    <p v-for="(item,index) in list">{{item.id}} {{item.name}} {{index}}</p>
</div>
<script>
    // 创建一个vue实例
    new Vue({
        el:'#app',
        data:{
           list :[
               {id:1,name:'zs1'},
               {id:2,name:'zs2'},
               {id:3,name:'zs3'},
               {id:4,name:'zs4'}
           ]
        },
        methods:{

        }
    })
</script>
</body>
</html>
